<?php
require("cfg.php");
require("function.php");
$song_name=$_POST['name'];
$song_name=iconv("utf-8","gb2312",$song_name);
$string="";
if ($song_name) {
	$sql="SELECT `commend` ,`ip` FROM `commend_record` WHERE `song_name` = '$song_name' LIMIT 0 , 20;";
	$query=mysql_query($sql);
	while ($row = mysql_fetch_array($query)) {
		$commend=iconv("gb2312","utf-8",$row['commend']);
		$string.=($row['ip'] .":<br/>\t".$commend."<br/>");
	}
	echo $string;
	
	
}
?>